<#include "/common/layout.html"> 
<@layout title="123">
<script type="text/javascript" src="/js/easyui/easyui_grid.js"></script>
<script type="text/javascript">
var model_name = "/vestWinning";
var model_title="项目";
var types=["晒图","抽奖","投票"];
var datagrid;
	$(function() {
		datagrid=$('#product_type_table').datagrid({
		 	url:model_name+'/grid',
		 	rownumbers:true,
		 	columns:[[    
				{field:'id',title:'id',hidden:true},
		        {field:'type',title:'type',formatter:function(value,row,index){
		        	return types[value];
		        }},
		        {field:'username',title:'username'},
		        {field:'password',title:'password'},
		        {field:'forumName',title:'forumName'},
		        {field:'createTime',title:'createTime'},
		        {field:'remark',title:'备注',width:300}
		    ]],
		    onDblClickRow:null
		});
	});
</script>
<script type="text/javascript" src="/js/easyui/easyui_grid_common.js"></script>
</head>
	<#include "/common/seach.html" />
	<@seach tableid="product_type_table">
	<td>类别</td>
	<td><input type="text" name="seachLike_type"></td>
	<td>forumName</td>
	<td><input type="text" name="seach_forumName"></td>
	</@seach>
</@layout>